import NutUI from '@nutui/nutui';
import * as NutUiIconsVue from '@nutui/icons-vue';
import type { App } from 'vue'

export const setNutUI = (app: App) => {
  // 全局加载icon
  for(const [key, component] of Object.entries(NutUiIconsVue)) {
    app.component(key, component)
  }
  app.use(NutUI);
}